
<div class="box-body">
	<div>
		<b>Summary</b><br/>
		<p class="text-green">Total Amount : <%-refData.transactionSummary[0].price %></p>
	</div>
	<div class="box box-info searchField">
	
		<form id="form" class="form-submission-search backend" title="<%-controller%>" method='post'>
	
		<div class="box-header">
			<h3 class="box-title"></h3>
		</div>
		<div class="row">
			
			<div class="col-lg-2">
				<div class="input-group">
					<span class="input-group-addon"> Username </span> <input
					    name="username" value="<%-record['username'] -%>"
						type="text" class="form-control">
				</div>
				<!-- /input-group -->
			</div>
			<!-- /.col-lg-2 -->

			<div class="col-lg-2">
				<div class="input-group">
					<span class="input-group-addon"> Bid Pack </span> <input
					name="bid_pack.name" value="<%-record['bid_pack.name'] -%>"
						type="text" class="form-control">
				</div>
				<!-- /input-group -->
			</div>
			<!-- /.col-lg-2 -->

			
			<div class="col-lg-2">
				<div class="input-group">
					<span class="input-group-addon"> Price </span> <input
					name="price" value="<%-record['price'] -%>"
						type="text" class="form-control">
				</div>
				<!-- /input-group -->
			</div>
			<!-- /.col-lg-2 -->
			

			<div class="col-lg-2">
				<div class="input-group">
					<span class="input-group-addon"> Company </span> <select
						class="form-control" name="company">
						<option></option>
						<% if(refData.companyList.length){ for(var i = 0; i < refData.companyList.length; i++) { %>
							<option value="<%- refData.companyList[i].key %>"><%= refData.companyList[i].name %></option> 
						<% } } %>
					</select>
				</div>
				<!-- /input-group -->
			</div>
			<!-- /.col-lg-1 -->



			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input  class="btn btn-default " type="submit" value="Submit"/>
		</div>
		<!-- /.row -->
		<br />
		</form>
	</div>
</div>




<table class="table table-bordered">
	<tr>
		<th>Company</th>
		<th>Username</th>
		<th>Bid Pack</th>
		<th>Price</th>
		<th>Processed By</th>
		<th>Date Ordered</th>

	</tr>
	<% if(records.length){ for(var i = 0;i < records.length;i++) { %>
	<tr>
		<td><%=records[i].company%></td>
		<td><%=records[i].username%></td>
		<td><%=records[i].bid_pack_name%></td>
		<td><%=records[i].price%></td>
		<td><%=records[i].user_firstname%> <%=records[i].user_lastname%></td>
		<td><%=records[i].date_added%></td>

	</tr>
	<% } }else{ %>
	<tr>
		<td colspan="6">No Transactions</td>
	</tr>
	<% } %>
</table>

<% include ../includes/pagination-v2 %>



<script type="text/javascript">
	$("title").html("The Net - Dashboard");
	$(".page-content-header").html("Dashboard");
	

	$(".searchLink").show();
	
</script>
